20240612 2806 - Easy - Round
2806. Account Balance After Rounded Purchase
class Solution:
def accountBalanceAfterPurchase(self, purchaseAmount: int) -> int:
return 100 - ((purchaseAmount + 5) // 10) * 10
2806. Account Balance After Rounded Purchase
class Solution:
def accountBalanceAfterPurchase(self, purchaseAmount: int) -> int:
return 100 - ((purchaseAmount + 5) // 10) * 10